//
//                 Test Program for new PIC32 on breakout board with LED at pinRF4 
//
#include <p32xxxx.h>
#pragma config FPLLMUL = MUL_20, FPLLIDIV = DIV_2, FPLLODIV = DIV_1, FWDTEN = OFF
#pragma config POSCMOD = HS, FNOSC = PRIPLL, FPBDIV = DIV_8


main()
{
	char val = 0;
    // disable JTAG port
    DDPCONbits.JTAGEN = 0;

	_TRISF4 = 0;		// set pin as output
    T1CON = 0x8030; 	// TMR1 on, prescale 1:256 PB

	while(1)
	{
			_LATF4 = val;
			val ^= 1;
            TMR1 = 0;
            while ( TMR1 < 4000)
            {
            }
	}

} // main
